<?php
$key = ftok("42.php","x");
$msqid = msg_get_queue($key);
echo msg_receive($msqid,0,$msgType,3,$msg,false,MSG_NOERROR);
echo "type=".$msgType."\r\n";
echo $msg;
